/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 布局样式 */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav {
    background-color: #34495e;
    padding: 0 2rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 1rem;
    display: block;
    transition: background-color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #2980b9;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
}

.add-btn {
    background-color: #2ecc71;
}

.edit-btn {
    background-color: #f39c12;
}

.delete-btn {
    background-color: #e74c3c;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #34495e;
    color: white;
}

/* 表单样式 */
.form-container {
    background-color: white;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 登录页面样式 */
.login-container {
    max-width: 500px;
    margin: 5rem auto;
    padding: 0 2rem;
}

.login-box {
    background-color: white;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

/* 其他样式省略 *//* 补充样式 */
.page-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.cancel-btn {
    background-color: #95a5a6;
}

.required {
    color: #e74c3c;
}

.success-message {
    background-color: #d5f5e3;
    color: #27ae60;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.error-message {
    background-color: #fadbd8;
    color: #e74c3c;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.no-data {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
}

.detail-container {
    background-color: white;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 1rem;
}

.detail-row {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f1f1;
}

.detail-label {
    font-weight: bold;
    color: #34495e;
}

.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.error-container {
    text-align: center;
    padding: 2rem;
}

.error-container h1 {
    font-size: 5rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.error-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}